#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>

int main() {
    int p = 0, n = 0;
    for (int i = 0; i < 10; i++) {
        int x;
        scanf("%d", &x);
        if (x >= 0)
            p++;
        else n++;
    }
    printf("positive:%d\nnegative:%d", p, n);
    return 0;
}